// 2. 定义一些路由
// 每个路由都需要映射到一个组件。
// 我们后面再讨论嵌套路由。
import Index from "../page/Index.vue";
import Team from "../page/Team.vue";
import User from "../page/User.vue"
import UserShow from "../page/UserShow.vue"
import UserUpdate from "../page/UserUpdate.vue"
import UserTeamCreate from "../page/UserTeamCreate.vue"
import UserTeamJoin from "../page/UserTeamJoin.vue"
import Search from "../page/Search.vue";
import UserEdit from "../page/UserEdit.vue";
import SearchResultPage from "../page/SearchResultPage.vue";
import UserLogin from "../page/UserLogin.vue";
import Register from "../page/UserRegister.vue";
import TeamAdd from "../page/TeamAdd.vue";
import TeamUpdate from "../page/TeamUpdate.vue";
import TeamAddPassword from "../page/TeamAddPassword.vue";
import FriendShow from "../page/FriendShow.vue";
import FriendApply from "../page/FriendApply.vue";
import TagsEdit from "../page/TagsEdit.vue";
import Poster from "../page/Poster.vue";
import PosterCreate from "../page/PosterCreate.vue";
import PosterByMe from "../page/PosterByMe.vue";

const routes = [
    { path: '/', component: Index },
    { path: '/team',title:'寻找队伍', component: Team },
    { path: '/team/add',title:'创建队伍', component: TeamAdd },
    { path: '/team/update', title:'更新队伍',component: TeamUpdate },
    { path: '/team/add/secret', component: TeamAddPassword },
    { path: '/user', title:'个人信息',component: User },
    { path: '/user/update',title:'修改信息', component: UserUpdate },
    { path: '/search', title:'寻找伙伴',component: Search },
    { path: '/user/edit',title:'编辑信息', component: UserEdit },
    { path: '/user/list', component: SearchResultPage},
    { path: '/user/login',title:'登录页面', component: UserLogin},
    { path: '/user/register',title:'注册页面', component: Register},
    { path: '/user/create', title:'我创建的队伍',component: UserTeamCreate},
    { path: '/user/join', title:'我加入的队伍',component: UserTeamJoin},
    { path: '/user/show', title:'用户信息',component: UserShow},
    { path: '/friend', title:'好友列表',component: FriendShow},
    { path: '/friend/apply', title:'好友申请',component: FriendApply},
    { path: '/tags-edit', title:'修改标签',component: TagsEdit},
    { path: '/poster', title:'帖子',component: Poster},
    { path: '/poster-create', title:'创建帖子',component: PosterCreate},
    { path: '/poster-me', title:'我创建的帖子',component: PosterByMe},
]

//导出
export default routes